package com.zhongwang.mms.module.half.dao;

import com.zhongwang.mms.gen.entity.HInventoryProjectMark;
import com.zhongwang.mms.gen.entity.HInventoryProjectMarkExample;
import com.zhongwang.mms.module.half.model.HInventoryProjectMarkModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HInventoryProjectMarkDao {
    long countByExample(HInventoryProjectMarkExample example);

    int deleteByExample(HInventoryProjectMarkExample example);

    int deleteByPrimaryKey(Integer ipmId);

    int insert(HInventoryProjectMark record);

    int insertSelective(HInventoryProjectMark record);

    List<HInventoryProjectMark> selectByExample(HInventoryProjectMarkExample example);

    HInventoryProjectMark selectByPrimaryKey(Integer ipmId);

    int updateByExampleSelective(@Param("record") HInventoryProjectMark record, @Param("example") HInventoryProjectMarkExample example);

    int updateByExample(@Param("record") HInventoryProjectMark record, @Param("example") HInventoryProjectMarkExample example);

    int updateByPrimaryKeySelective(HInventoryProjectMark record);

    int updateByPrimaryKey(HInventoryProjectMark record);

    /**查询页面数据*/
    List<HInventoryProjectMarkModel> selectHInventoryProjectMarkByQuery(HInventoryProjectMark query);

    /**批量修改状态*/
    int updateHInvProMarkAppyStatusByIpmIds(HInventoryProjectMarkModel hInventoryProjectMarkModel);

    /**查询库存划项目表数据*/
    List<HInventoryProjectMark> getHInvProMarkByIpmIds(String ipmIds);

    /**删除申请表数据*/
    int deleteHInvProMarkByIpmIds(String ipmIds);
}